<template>
  <div class>
    <input type="text" v-model="content" @keydown.13="add"/>
    <button >提交</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      content:"",
    };
  },
  mounted() {},
  methods: {
    add() {
      this.$store.commit('add',this.content)
    }
  }
};
</script>

<style lang='scss'>
</style>
